package sunwul.mall.commonbase.constant;

/**
 * @author sunwul
 * @date 2024/12/9 16:31
 * @description  业务响应状态码 枚举
 */
public enum BusinessStatusEnum {
    SUCCESS(0, "成功"),
    FAIL(1, "失败"),
    SERVER_INNER_ERROR(500, "服务内部异常"),
    UN_AUTHORIZATION(401, "未授权"),
    ACCESS_DENY_FAIL(403, "权限不足, 请联系管理员")
    ;

    private Integer code;
    private String desc;

    BusinessStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
